package designpattern.adapter.classadapter;

//适配器
public class VoltageAdapter extends Voltage220 implements IVoltage5{
    @Override
    public int output5() {
        int srcV = this.output220();
        int dstV = srcV/44;
        System.out.println("适配器将电压转为5V");
        return dstV;
    }
}
